package com.dq.domain.statistics;

import com.dq.domain.base.BaseEntity;
import com.dq.domain.service.ServiceProject;
import com.dq.domain.sys.section.SysSection;
import com.dq.vo.baseVo.VO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;

/**
 * @Author luchangtong
 * @Date 2020/5/15 10:33
 */
@Data
@Entity
@ApiModel("项目统计")
public class ServiceProjectStatistics  extends BaseEntity implements VO.ToVO{
    @ApiModelProperty("门店")
    @ManyToOne
    protected SysSection org;
    @ApiModelProperty("充值盈利")
    protected BigDecimal rechargePrice;
    @ApiModelProperty("消耗盈利")
    protected BigDecimal consumePrice;
    @ApiModelProperty("总")
    protected BigDecimal price;
    @ApiModelProperty("服务项目")
    @ManyToOne
    protected ServiceProject serviceProject;
    @ApiModelProperty("预约数")
    protected Long subscribeNum;
    @Override
    public VO toVO(boolean isRecursion) {
        return null;
    }
}
